# 使用下面步骤代替第一步，原因是有些cmake版本不支持（-S -B）参数
rm -rf build

mkdir build && cd build && cmake .. && cd ../
# 下面一样
cmake --build build



# 参数1:类别名的txt文件
# 参数2:engine文件路径
# 参数3:读取mp4的路径
# 参数4:是否 写入视频文件
# 参数5:保存mp4文件路径
# 参数6:中文字体路径
# 参数7: 是否 实时处理显示 (去掉了)

# gdb --args ./build/first_cmake \
#     "/root/UniSecurity/tensor02/c80.txt" \
#     "/root/UniSecurity/tensor02/yolov8n.engine" \
#     "/root/UniSecurity/tensor02/mp4_out/ce1.mp4" \
#     0 \
#     "/root/UniSecurity/tensor02/ce1.mp4" \
#     "/root/UniSecurity/tensor02/chiese_hei.ttf"

./build/first_cmake \
    "/root/UniSecurity/tensor02/c80.txt" \
    "/root/UniSecurity/tensor02/yolov8n.engine" \
    "/root/UniSecurity/tensor02/mp4_out/ce1.mp4" \
    "0" \
    "/root/UniSecurity/tensor02/ce1.mp4" \
    "/root/UniSecurity/tensor02/chiese_hei.ttf"
